package com.kehutong.charge.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.kehutong.charge.util.enums.UrgingTypeEnum;
import org.coraframework.orm.annotation.Column;
import org.coraframework.util.Objects;

import java.sql.Timestamp;
import java.util.List;

/**
 * @program: kht
 * @description: ChargeFeeConfig 导出
 * @author: jian Ye
 * @create: 2021/6/29
 **/
@ColumnWidth(15)
public class ChargeUrgingManageExcelVO {

    @ColumnWidth(25)
    @ExcelProperty(value="催费编号")
    private String urgingNo;
    @ExcelProperty(value="项目/小区")
    private String communityName;
    @ExcelProperty(value="接收人数")
    private String urgingTotal;

    @ExcelIgnore
    private UrgingTypeEnum urgingTypeMsg;

    @ExcelProperty(value="催缴方式")
    private String urgingType;

    @ColumnWidth(25)
    @ExcelProperty(value="催费时间")
    private Timestamp createTime;


    public String getUrgingNo() {
        return urgingNo;
    }

    public void setUrgingNo(String urgingNo) {
        this.urgingNo = urgingNo;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getUrgingTotal() {
        return urgingTotal;
    }

    public void setUrgingTotal(String urgingTotal) {
        this.urgingTotal = urgingTotal;
    }

    public UrgingTypeEnum getUrgingTypeMsg() {
        return urgingTypeMsg;
    }

    public void setUrgingTypeMsg(UrgingTypeEnum urgingTypeMsg) {
        this.urgingTypeMsg = urgingTypeMsg;
    }

    //特殊处理
    public String getUrgingType() {
        if(null !=urgingTypeMsg){
            return urgingTypeMsg.getDesc();
        }
        return "--";
    }


    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
}
